package com.oss.oss.controller;

import com.oss.oss.Util.RequestVo;
import com.oss.oss.service.OssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class OssController {
    @Autowired
    private OssService ossService;
    @GetMapping("/getOss")
    public RequestVo getOss(){
        RequestVo requestVo=new RequestVo();
        Map<String, String> oss = ossService.getOss();
        requestVo.setCode(200);
        requestVo.setData(oss);
        requestVo.setMessage("获取成功");
        return requestVo;
    }

}
